package com.satis.viewmodel.sample

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.satis.viewmodel.annotation.Observe
import com.satis.viewmodel.core.SatisViewModel

class MainActivity2 : MainActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main2)
    }

    @Observe("test1")
    fun test1(string: String){
        Toast.makeText(this,string,Toast.LENGTH_SHORT).show()
    }
}